package net.kelissa.jenetic.example.salesman;

public class SalesmanValue implements Comparable<SalesmanValue>
{
  private final String name;
  private final double[] position;

  public SalesmanValue(String name, double[] position)
  {
    this.name = name;
    this.position = position;
  }

  public String getName()
  {
    return name;
  }
  public double[] getPosition()
  {
    return position;
  }

  @Override
  public int compareTo(SalesmanValue other)
  {
    return this.name.compareTo(other.getName());
  }
}
